<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/admin/header.jsp"%>
<% request.setAttribute("saveUrl", com.sz.controller.frame.PropertiesController.PROPERTIES_SAVE_URL); %>
<% request.setAttribute("listUrl", com.sz.controller.frame.PropertiesController.PROPERTIES_LIST_URL); %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改peoperties配置文件</title>
</head>
<body>
<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 
		<span class="c-gray en">&gt;</span>配置文件
		<span class="c-gray en">&gt;</span><a href="javascript:;">配置列表</a>
		<a class="btn btn-success radius r"
			style="line-height: 1.6em; margin-top: 3px"
			href="javascript:location.replace('${ctx }${listUrl}');" title="刷新">
			 <i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	
	
	
	<div class="page-container">
	<form action="${ctx }${saveUrl}" name="form1" method="post">
	
	<table class="table table-border table-bordered table-hover table-bg table-sort">
		<thead>
					<tr class="text-c">
						<th width="20%">Key</th>
						<th width="80%">Value</th>
					</tr>
		</thead>
		<c:forEach items="${map}" var="ele" varStatus="status">
		<tr class="text-c">
			<td><input type="text" value="${ele.key}" name="${ele.key}_unused" class="names names_${status.count } input-text radius" readonly="readonly" ></td>
			<!---->
			<td><input type="text" value="${ele.value}" name="${ele.key}" class="values values_${status.count } input-text radius"></td>
		</tr>
		</c:forEach>
		</table><br>
		<shiro:hasPermission name="${saveUrl }">
		<input type="submit" class="btn btn-primary radius" value="保存修改">
		</shiro:hasPermission>
		</form>
	</div>
<%@ include file="/admin/footer.jsp"%>
</body>
<script language="javascript">

	$(function() {
		var saveSuccess = '${msg}';
		if (saveSuccess == 'ok') {
			layer.msg('修改成功!', {
				icon : 1,
				time : 3000
			});
		}
	})
	

</script>
</html>